package com.hsgene.product.domain;

import com.hsgene.common.util.validation.FieldChecker;

import java.util.List;

/**
 * 基因检测套餐
 */
public class GeneticTestingPackage {

    private int number;
    private String id;
    /**
     * 套餐名称
     */
    private String packageName;
    /**
     * 分类，（1-医疗，2-健康）（默认健康）
     */
    private  String category;

    /**
     * 检测机构名称
     */
    private String geneticTestingAgencyName;
    /**
     * 套餐产品
     */
    private GeneticTestingProduct geneticTestingProduct;
    /**
     * 删除的字段产品详情集和id
     */
    private List<String> deleteProductDetailIds;

    private String remarks;

    private Integer deleteFlag;
    private Integer isUsed;
    /**
     * 是否通知（0否，1是）
     */
    private Integer isToNotify;
    /**
     * 修改套餐通知的内容
     */
    private String content;

    private String userId;
    /**
     * 套餐对外机构的对应code
     */
    private String packageCode;

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public GeneticTestingProduct getGeneticTestingProduct() {
        return geneticTestingProduct;
    }

    public String getCategory() {
        return category;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public void setGeneticTestingProduct(GeneticTestingProduct geneticTestingProduct) {
        this.geneticTestingProduct = geneticTestingProduct;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName == null ? null : packageName.trim();
    }

    public String getGeneticTestingAgencyName() {
        return geneticTestingAgencyName;
    }

    public void setGeneticTestingAgencyName(String geneticTestingAgencyName) {
        this.geneticTestingAgencyName = geneticTestingAgencyName == null ? null : geneticTestingAgencyName.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public List<String> getDeleteProductDetailIds() {
        return deleteProductDetailIds;
    }

    public void setDeleteProductDetailIds(List<String> deleteProductDetailIds) {
        this.deleteProductDetailIds = deleteProductDetailIds;
    }

    /**
     * 字段校验
     */
    public void check(){
        FieldChecker.checkEmpty(this.packageName, "套餐名称不能为空");
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getIsToNotify() {
        return isToNotify;
    }

    public void setIsToNotify(Integer isToNotify) {
        this.isToNotify = isToNotify;
    }

    public String getPackageCode() {
        return packageCode;
    }

    public void setPackageCode(String packageCode) {
        this.packageCode = packageCode;
    }
}